package com.lagou.service;

import com.lagou.dao.UserDao;
import com.lagou.entity.User;

import java.sql.SQLException;

public class UserService {
    public User login(String username, String password) throws SQLException {

        UserDao userDao = new UserDao();
        User user = userDao.login(username, password);
        return user;
    }
}
